package com.xs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xs.dao.RecordDao;
import com.xs.entity.Record;
import com.xs.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecordServiceImpl extends ServiceImpl<RecordDao, Record> implements RecordService {
    @Autowired
    private RecordDao recordDao;

    @Override
    public Integer CountByUid(Integer uid) {
        return recordDao.countByUid(uid);
    }

    @Override
    public Record getCover(Integer uid) {
        return recordDao.getRecord(uid);
    }
}
